
Subsets classified factor, retaining attributes.
# S3 method for classified
[(x, ...)
classified factor
passed to next method
class 'classified' 'factor'
Other classified:
as_classified.factor()
,
as_classified()
# NOT RUN {
a <- as_classified(factor(letters))
attr(a, 'label') <- 'foo'
a <- a[1:3]
attributes(a)
# }
Run the code above in your browser using DataLab